<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增会议')" />
	<th:block th:include="include :: datetimepicker-css" />
	<th:block th:include="include :: bootstrap-fileinput-css" />
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<script type="text/javascript" charset="utf-8" th:src="@{/ueditor/ueditor.config.js}"></script>
	<script type="text/javascript" charset="utf-8" th:src="@{/ueditor/ueditor.all.js}"> </script>
	<script type="text/javascript" charset="utf-8" th:src="@{/ueditor/lang/zh-cn/zh-cn.js}"></script>
	<link type="text/css" rel="stylesheet" th:href="@{/ueditor/third-party/video-js/video-js.css}"/>
	<script  type="text/javascript" th:src="@{/ueditor/third-party/video-js/video.js}"></script>+
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-meeting-add" >
		<input id="id" name="id" type="hidden" th:value="${id}" />
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">审核状态：</label>
			<div class="col-sm-6">
				<input id="reviewStatus" name="reviewStatus" class="form-control" type="text" th:value="${status}" readonly >
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">操作时间：</label>
			<div class="col-sm-6">
				<input id="operTime" name="operTime" class="form-control" type="text" th:value="${date}" readonly>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">审核人：</label>
			<div class="col-sm-6">
				<input id="userName" name="userName" class="form-control" type="text" th:value="${userName}" readonly>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label is-required">审核意见：</label>
			<div class="col-sm-6">
				<input id="opinion" name="opinion" class="form-control" type="text" required>
			</div>
		</div>
	</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<th:block th:include="include :: bootstrap-fileinput-js" />
<script type="text/javascript">
	var prefix = ctx + "system/business";
	var pref = ctx + "system/cloumn";

	$("#isShuffling").on("change",function  () {
		var isShuffling = $("input[id='isShuffling']").is(':checked') == true ? 1 : 0;
		if (isShuffling == 0) {
			$("#div2").attr("style", "display:none;");
		} else {
			$("#div2").attr("style", "display:block;");
		}
	})
	$("#datetimepicker-demo-3").datetimepicker({
		format: "yyyy-mm-dd hh:ii:ss",
		autoclose: true,
		todayBtn :true
	});
	$(document).ready(function () {
    $("#imgfiles").fileinput({
        language: 'zh', //设置语言
        'showUpload': true,
        'previewFileType': 'image',
        'showPreview': true,
        'showClose': false,
        allowedFileExtensions: ["png", "jpg", "gif", "bmp", "jpeg"],//接收的文件后缀
        uploadAsync: true, //默认异步上传
        uploadUrl: ctx + "common/upload", //上传的地址
        dropZoneEnabled: false,//是否显示拖拽区域
        autoReplaceBoolean: false,//选择图片时不清空原图片
        maxFileCount: 9,
        initialPreviewAsData: true,
        initialPreview: [$("#imageurl").val()],
        deleteUrl: ""
      });
    });
    var img_urls = "";
    $('#imgfiles').on('fileuploaded', function (event, data, previewId, index) {
        if (typeof (data.response.url) != 'undefined') {
            img_urls = img_urls + data.response.url;
            $("#imageurl").val(img_urls);
        }
    });


	$("#form-notice-add").validate({
		focusCleanup: true
	});

	function saveEnterprise(){
		if ($.validate.form()) {
			var data = $("#form-meeting-add").serializeArray();
			$.operate.save(prefix + "/add", data);
		}
	}

	function submitHandler() {
		if ($.validate.form()) {
			var data = $("#form-meeting-add").serializeArray();
			$.operate.save(prefix + "/audit/fail", data);
		}
	}
	/*用户管理-新增-选择部门树*/
	function selectDeptTree() {
		var url = pref + "/selectTree"+$("#treeId").val();
		var options = {
			title: '选择栏目',
			width: "380",
			url: pref + "/selectTree/" + $("#treeId").val(),
			callBack: doSubmit
		};
		$.modal.openOptions(options);
	}
	function doSubmit(index, layero){
		var body = layer.getChildFrame('body', index);
		$("#treeId").val(body.find('#treeId').val());
		$("#treeName").val(body.find('#treeName').val());
		layer.close(index);
	}

	var ue = UE.getEditor('editors',{
	});

	$(function(){
		var ue = UE.getEditor('editors')
		ue.addListener("ready", function () {
		});


		$("#datetimepicker-demo-2").datetimepicker({
       		    format: "yyyy-mm-dd hh:ii:ss",
       		    autoclose: true
       		});
	});
</script>
</body>
</html>
